package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 黄佳辉
 * @since 2023-01-04
 */
@Data
@TableName("b_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String orderNum;

    private BigDecimal payable;

    private BigDecimal pay;

    /**
     * 1 、待付款  （未支付）	            2 、（待收货） （已付款）	            3、 待评论  (已收货)	            4 、取消订单	            5、退货 
     */
    private Integer status;

    private LocalDateTime orderDate;

    private String mid;

    private String nickName;

    private String siteName;

    private String siteMobile;

    private String siteAddress;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String reciveUser;

    private String reciveMobile;

    @TableField(exist = false)
    List<Orderdetail> orderDetail;


}
